package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.model.entity.HeZuoZuZhi;
import com.yl.auth.mapper.HeZuoZuZhiMapper;
import com.yl.auth.model.vo.HeZuoZuZhiVo;
import com.yl.auth.service.HeZuoZuZhiService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yl
 * @since 2023-06-30
 */
@Service
public class HeZuoZuZhiServiceImpl extends ServiceImpl<HeZuoZuZhiMapper, HeZuoZuZhi> implements HeZuoZuZhiService {

    @Resource
    private HeZuoZuZhiMapper heZuoZuZhiMapper;
    @Override
    public Page<HeZuoZuZhi> findAllConAndPage(Page<HeZuoZuZhi> page1, HeZuoZuZhiVo heZuoZuZhiVo) {
        return heZuoZuZhiMapper.findAllConAndPage(page1,heZuoZuZhiVo);
    }

    @Override
    public void updateByReward(HeZuoZuZhi heZuoZuZhi) {
        heZuoZuZhiMapper.updateByReward(heZuoZuZhi);
    }
}
